module.exports = {
	app: [
    {
    	name: 'qcsw_home', //修改
    	script: 'app.js',
    	env: {
    		COMMON_VARIABLE: 'true'
    	},
    	env_production: {
    		NODE_ENV: 'production'
    	}
    }
	],

	deploy: {
		production: {
			user: 'root',
			host: '39.107.226.3',  //修改
			ref: 'origin/master',
			repo: 'https://gitee.com/wujinhui2019/qcsw_home.git',  //修改
			path: '/www/qcsw_home/production', //修改
			'pre-deploy': 'git fetch --all',
			'post-deploy': 'cnpm install && npm run prd'  //安装所有依赖
			//'post-deploy': 'cnpm install && npm run prd && pm2 startOrRestart deploy.config.js --env production'  //修改
		}
	}
}